#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTextEdit>
#include <QPushButton>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public slots:
    void whiteModel();
    void blackModel();

private:
    Ui::Widget *ui;
    QTextEdit*te = new QTextEdit(this);
    QPushButton* btn1 = new QPushButton("日间模式", this);
    QPushButton* btn2 = new QPushButton("夜间模式", this);
};
#endif // WIDGET_H
